/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.analysisresult.entity;

import com.longview.io.modules.grassinfo.entity.UserGrasslandInfo;
import org.hibernate.validator.constraints.Length;

import com.longview.io.common.persistence.DataEntity;

/**
 * 分析结果Entity
 * @author zf
 * @version 2018-04-24
 */
public class GrassAnalysisResult extends DataEntity<GrassAnalysisResult> {
	
	private static final long serialVersionUID = 1L;
	private UserGrasslandInfo grass;		// 草场
	private String standVal;		// 本月标准值
	private String nowStandVal;		// 实际标准值
	private String year;		// 年
	private String month;		// 月
	private String avgVal;		// 拍照平均值
	private String nowCarryingLivestock;		// 当前载畜量
	private String carryingLivestock;		// 系统载畜量
	private String carryingGrass;		// 系统草量
	private String nowCarryingGrass;		// 当前草量
	private String lon;		// 经度
	private String lat;		// 纬度
	private String remark;		// 卑职
	
	public GrassAnalysisResult() {
		super();
	}

	public GrassAnalysisResult(String id){
		super(id);
	}

	public UserGrasslandInfo getGrass() {
		return grass;
	}

	public void setGrass(UserGrasslandInfo grass) {
		this.grass = grass;
	}
	
	public String getStandVal() {
		return standVal;
	}

	public void setStandVal(String standVal) {
		this.standVal = standVal;
	}
	
	public String getNowStandVal() {
		return nowStandVal;
	}

	public void setNowStandVal(String nowStandVal) {
		this.nowStandVal = nowStandVal;
	}
	
	@Length(min=0, max=11, message="年长度必须介于 0 和 11 之间")
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	
	@Length(min=0, max=11, message="月长度必须介于 0 和 11 之间")
	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}
	
	public String getAvgVal() {
		return avgVal;
	}

	public void setAvgVal(String avgVal) {
		this.avgVal = avgVal;
	}
	
	@Length(min=0, max=500, message="当前载畜量长度必须介于 0 和 500 之间")
	public String getNowCarryingLivestock() {
		return nowCarryingLivestock;
	}

	public void setNowCarryingLivestock(String nowCarryingLivestock) {
		this.nowCarryingLivestock = nowCarryingLivestock;
	}
	
	@Length(min=0, max=500, message="系统载畜量长度必须介于 0 和 500 之间")
	public String getCarryingLivestock() {
		return carryingLivestock;
	}

	public void setCarryingLivestock(String carryingLivestock) {
		this.carryingLivestock = carryingLivestock;
	}
	
	@Length(min=0, max=11, message="系统草量长度必须介于 0 和 11 之间")
	public String getCarryingGrass() {
		return carryingGrass;
	}

	public void setCarryingGrass(String carryingGrass) {
		this.carryingGrass = carryingGrass;
	}
	
	@Length(min=0, max=11, message="当前草量长度必须介于 0 和 11 之间")
	public String getNowCarryingGrass() {
		return nowCarryingGrass;
	}

	public void setNowCarryingGrass(String nowCarryingGrass) {
		this.nowCarryingGrass = nowCarryingGrass;
	}
	
	@Length(min=0, max=20, message="经度长度必须介于 0 和 20 之间")
	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}
	
	@Length(min=0, max=20, message="纬度长度必须介于 0 和 20 之间")
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}
	
	@Length(min=0, max=100, message="卑职长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}